package com.csd.service;

import com.csd.mapper.SysOrderMapper;
import com.csd.po.PageOrder;
import com.csd.po.SysOrder;

import java.util.List;
import java.util.Map;

/**
 * 订单业务
 * @program: CeSuDi_SSM
 * @author: qinjianbao
 * @create: 2020-12-24 13:25
 * @Version: 1.0
 */
public interface SysOrderService {
    /**
     * 添加订单
     * @param id 用户id
     * @param cid 车id
     * @param getid 取车id
     * @param backid 还车id
     * @param oprice 订单金额
     */

    void addOrder(int id, int cid, int getid, int backid, double oprice);

    List<PageOrder> selectAll(Integer id, Integer page);

    /**
     * 删除订单
     * @param id
     */
    void delOrderById(Integer id);
}
